package com.boot2.core.web.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Constraint(validatedBy = PhoneValidator.class)
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface EmumValidator {

    String message() default "只允许在规定的值范围内";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};

}